package com.levy.contronller.javase.designModel.observer.news;

/**
 * 例子
 * Created by levy on 2018/8/7.
 */
public class MainClass {

    public static void main(String[] args) {
        BlogUser blogUser = new BlogUser();
        blogUser.addObserver(new ReaderObserver());
        blogUser.publishBlog("毛泽东语录","内容");

        blogUser.publishBlog("马克思","fsdfdf");

    }
}
